package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.douYinUserMapper;
import com.ruoyi.system.domain.douYinUser;
import com.ruoyi.system.service.IdouYinUserService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-03-29
 */
@Service
public class douYinUserServiceImpl implements IdouYinUserService 
{
    @Autowired
    private douYinUserMapper douYinUserMapper;

    /**
     * 查询用户
     * 
     * @param id 用户ID
     * @return 用户
     */
    @Override
    public douYinUser selectdouYinUserById(Long id)
    {
        return douYinUserMapper.selectdouYinUserById(id);
    }

    /**
     * 查询用户列表
     * 
     * @param douYinUser 用户
     * @return 用户
     */
    @Override
    public List<douYinUser> selectdouYinUserList(douYinUser douYinUser)
    {
        return douYinUserMapper.selectdouYinUserList(douYinUser);
    }

    /**
     * 新增用户
     * 
     * @param douYinUser 用户
     * @return 结果
     */
    @Override
    public int insertdouYinUser(douYinUser douYinUser)
    {
        return douYinUserMapper.insertdouYinUser(douYinUser);
    }

    /**
     * 修改用户
     * 
     * @param douYinUser 用户
     * @return 结果
     */
    @Override
    public int updatedouYinUser(douYinUser douYinUser)
    {
        return douYinUserMapper.updatedouYinUser(douYinUser);
    }

    /**
     * 删除用户对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletedouYinUserByIds(String ids)
    {
        return douYinUserMapper.deletedouYinUserByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用户信息
     * 
     * @param id 用户ID
     * @return 结果
     */
    @Override
    public int deletedouYinUserById(Long id)
    {
        return douYinUserMapper.deletedouYinUserById(id);
    }
}
